#ifndef ZERO_RETURN_MODE_H
#define ZERO_RETURN_MODE_H

#include <QWidget>
#include "util/util.h"

namespace Ui {
class ZeroReturnMode;
}

class ZeroReturnMode : public QWidget
{
    Q_OBJECT

public:
    explicit ZeroReturnMode(QWidget *parent = 0);
    ~ZeroReturnMode();

    void initializeBackground(QWidget *widget);
    void updateMantuableData();
    void addSpeedClicked();
    void decSpeedClicked();
    void connectSignalsAndSlots();
    void displayTechnParam(Techn_Param_ptr tech_param);

signals:
    void returnMenu();
    void returnTeachMode();
    void returnCalTimer();
    void returnManual();
    void returnAutomatic();
    void addSpeedValue();
    void decSpeedValue();

private slots:
    void pushReturnMenu();
    void pushReturnTeachMode();
    void pushReturnCalTimer();
    void pushReturnManual();
    void pushReturnAutomatic();

private:
    Ui::ZeroReturnMode *ui;
    void setTable(QTableWidget* table);
    QLabel *ledLabel;
};

#endif // ZERO_RETURN_MODE_H
